package com.yao.mall.mapper;

import com.yao.mall.model.entity.GoodsSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author jiahua.yao
* @description 针对表【goods_sku】的数据库操作Mapper
* @date 2024-03-10 20:41:12
* @entity com.yao.mall.model.entity.GoodsSku
*/
public interface GoodsSkuMapper extends BaseMapper<GoodsSku> {

    /**
     * 批量导入goodsSku数据
     * @param goodsSkuList 规格信息list
     * @return boolean
     */
    Boolean insertBatch(List<GoodsSku> goodsSkuList);

    /**
     * 数据库存更新
     * @param goodsSku
     * @return
     */
    Boolean updateByGoodsSku(@Param("goodsSku") GoodsSku goodsSku);
}




